<template>
  <svg :style="{ width: fontsize + 'px', height: fontsize + 'px' }">
    <use :xlink:href="prefix + name" :fill="color"></use>
  </svg>
</template>

<script setup>
defineProps({
  color: {
    type: String,
    default: '#000',
  },
  prefix: {
    type: String,
    default: '#icon-',
  },
  name: {
    type: String,
  },
  fontsize: {
    type: String,
    default: '16',
  },
})
</script>

<style lang="scss" scoped></style>
